package com.hzw.core.view

import android.widget.EditText
import com.google.android.material.textfield.TextInputLayout

var TextInputLayout.text: CharSequence?
    get() = editTextNow.text
    set(value) = editTextNow.setText(value)

val TextInputLayout.string: String
    get() = editTextNow.text.toString()

private inline val TextInputLayout.editTextNow: EditText
    get() = editText ?: error("找不到EditText！确保已首先添加它。")
